<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/2
 * Time: 11:15
 */

namespace app\api\validate;


use think\Validate;

class Apply extends Validate
{
//    protected $rule = [
//        ['Name','require|Name|checkHasValue:Name','姓名不能为空|姓名格式错误'],
//        ['Telephone','require|Telephone|checkHasValue:Telephone','手机号不能为空|手机号格式错误'],
//        ['VcCode', 'require|checkHasValue:VcCode', '验证码不能为空'],
//        ['','requirecheckHasValue:VcCode']
//    ];
//
//    protected $regex = [
//        'Telephone' => '/^1[0-9]{1}\d{9}$/',
//    ];
//
//    protected $scene = [
//        'user_index' =>['Name','password',]
//    ];
//
//    protected function checkHasValue($value, $rule)
//    {
//        $name = input('Name');
//        $idcard = input('IdCard');
//        return true;
////        switch ($rule){
////            case '':
////                if($this->currentScene == 'apply'){
////
////                }
////        }
//    }
}